
package common;

public class ErrCode {
    private ErrCode() {
    }

    public static void info(String format, Object... args) {
        System.err.printf(format + "\n", args);
    }

    public static void error(String format, Object... args) {
        System.err.printf(format + "\n", args);
    }

    public static final int ERR_OK = 0;

    public static final int ERR_ENTERROOM_NOEXIST = 1001; // 房间不存在
    public static final int ERR_ENTERROOM_HASIN = 1002; // 不在房间

    public static final int ERR_LEAVEROOM_NEXIST = 1101;
    public static final int ERR_LEAVEROOM_NOTIN = 1102;

    public static final int ERR_BET_NOTINROOM = 1201;
    public static final int ERR_BET_ROOMNOXIST = 1202;
    public static final int ERR_BET_SCOREINVALID = 1203; // 积分不合法
    public static final int ERR_BET_USER_FAILED = 1204;
    public static final int ERR_BET_ROOM_FAILED = 1205;

    // public static final int Err_BET_ROOM_FAILED = 1205;
}
